<?php require_once('../Connections/fastfood_con.php'); ?>
<?php
// Load the common classes
require_once('../includes/common/KT_common.php');

// Load the tNG classes
require_once('../includes/tng/tNG.inc.php');

// Make a transaction dispatcher instance
$tNGs = new tNG_dispatcher("../");

// Make unified connection variable
$conn_fastfood_con = new KT_connection($fastfood_con, $database_fastfood_con);

//Start Restrict Access To Page
$restrict = new tNG_RestrictAccess($conn_fastfood_con, "../");
//Grand Levels: Any
$restrict->Execute();
//End Restrict Access To Page

// Make a logout transaction instance
$logoutTransaction = new tNG_logoutTransaction($conn_fastfood_con);
$tNGs->addTransaction($logoutTransaction);
// Register triggers
$logoutTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "GET", "KT_logout_now");
$logoutTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "login.php");
// Add columns
// End of logout transaction instance

// Execute all the registered transactions
$tNGs->executeTransactions();

// Get the transaction recordset
$rscustom = $tNGs->getRecordset("custom");
$row_rscustom = mysql_fetch_assoc($rscustom);
$totalRows_rscustom = mysql_num_rows($rscustom);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="../includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/skins/style.js" type="text/javascript"></script>
</head>

<body>
<?php include ('admin_top.php'); ?>
<table width="500" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td colspan="4"><div align="center"><h3>ADMIN CPANEL</h3></div></td>
  </tr>
  <tr>
    <th width="50"><a href="#">No.<img src="img/icons/arrow_down_mini.gif" width="16" height="16" align="absmiddle" /></a></th>
    <th><a href="#">Name</a></th>
    <th colspan="2"><a href="#">Option</a></th>
    </tr>
  <tr>
    <td width="50"><div align="center">1</div></td>
    <td width="212">User Administration</td>
    <td width="106"><div align="center"><a href="add_user.php">Add new</a></div></td>
    <td width="106"><div align="center"><a href="update_user.php">Update</a></div></td>
  </tr>
  <tr>
    <td><div align="center">2</div></td>
    <td>Gallery</td>
    <td><div align="center"><a href="add_gallery.php">Add new</a></div></td>
    <td><div align="center">Update</div></td>
  </tr>
  <tr>
    <td><div align="center">3</div></td>
    <td>Services</td>
    <td><div align="center"><a href="add_product.php">Add new</a></div></td>
    <td><div align="center"><a href="update_product.php">Update</a></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td colspan="2"><?php
	echo $tNGs->getErrorMsg();
?></td>
    <td><div align="center"><a href="<?php echo $logoutTransaction->getLogoutLink(); ?>">Logout</a></div></td>
  </tr>
</table>
<?php include ('admin_bottom.php'); ?>
</body>
</html>